<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="../js/jquery-1.11.3.min.js"></script>
    <title>每天不上班,月入3W不是梦</title>
</head>
<style>
    img{max-width: 100%; height: auto;}
</style>
<script>
    var winHeight = typeof window.innerHeight != 'undefined' ? window.innerHeight : document.documentElement.clientHeight;
    var weixinTip = $('<div id="weixinTip"><p><img src="../image/livewx.png" alt="微信打开"/></p></div>');
    var url = 'https://itunes.apple.com/us/app/wei-jia-si-bu-yu/id1176088050?l=zh&ls=1&mt=8';

    function downloadAPK(){
        var ua = window.navigator.userAgent.toLowerCase();
        if(/android/.test(ua)){
            url = 'http://dl.178dn.com/download/disFish.apk'
        }

        if(ua.match(/MicroMessenger/i) == 'micromessenger'){
            $("body").append(weixinTip);
            $("#weixinTip").css({
                "position":"fixed",
                "left":"0",
                "top":"0",
                "height":winHeight,
                "width":"100%",
                "z-index":"1000",
                "background-color":"rgba(0,0,0,0.8)",
                "filter":"alpha(opacity=80)",
            });
            $("#weixinTip p").css({
                "text-align":"center",
                "margin-top":"10%",
                "padding-left":"5%",
                "padding-right":"5%"
            });
        }else{
            location.href = url;
        }
    }


</script>
<body>
<img src="../image/fish.jpg" onclick="downloadAPK()">
</body>
</html>